<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			*{
				margin: 0;
				padding: 0;
			}
			
			/*
			IE6的双倍边距bug。也就是浮动之后，IE6中会距离左边200px
			*/
			.box1{
				width: 100px;
				height: 100px;
				float: left;
				
				/*
				对于浮动元素，设置display:inline无效，
				但是可以解决IE6的双倍浮动bug
				*/
			   display: inline;
				
				background-color: red;
				margin-left: 100px;
			}
		</style>
	</head>
	<body>
		<div class="box1"></div>
	</body>
</html>
